package ui.app.com.ndktest;


import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class MainActivity1 extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Example of a call to a native method
        TextView tv1 = (TextView) findViewById(R.id.sample_text);
        tv1.setText(stringFromJNI());
    }

    public native String stringFromJNI();

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }

}
